package com.inspur.sc.springboot.convert;

import com.inspur.sc.springboot.entity.SysGroup;
import com.inspur.sc.springboot.vo.SysGroupVO;
import org.springframework.beans.BeanUtils;

public class SysGroupConvertSysGroupVO {

    public static SysGroupVO convert(SysGroup group){
        SysGroupVO groupVO=new SysGroupVO();
        BeanUtils.copyProperties(group,groupVO);
        return groupVO;
    }

    public static SysGroup convert(SysGroupVO groupVO){
        SysGroup group=new SysGroup();
        BeanUtils.copyProperties(groupVO,group);
        return group;
    }
}
